package com.cldz.dao;

import com.cldz.entity.Device;
import com.cldz.common.dto.req.DeviceDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 10:37 2018/12/4
 * @ Description：
 * @ Modified By：
 */
@Mapper
public interface DeviceMapper {

    List<Device> getDevListByAreaID(DeviceDto deviceDto);

    Integer getDevListByAreaIDCount(DeviceDto deviceDto);

    List<Device> getDevicesInfoWithStation(DeviceDto deviceDto);

    Integer getDevicesInfoWithStationAmount(DeviceDto deviceDto);

    Device getDevByID(String devID);

    List<Device> getDevListByTypeID(DeviceDto deviceDto);

    List<Device> getPassiveDeviceByInfo(DeviceDto deviceDto);

    Integer isExistDev(DeviceDto deviceDto);

    List<Device> getDeviceTypes(DeviceDto deviceDto);

    List<Map<String, Object>> censusWithDeviceType(DeviceDto deviceDto);


    List<Map<String, Object>> getDeviceStatus(DeviceDto deviceDto);
}
